#include "db_cmd.hpp"
#include "db_queue.hpp"

#include "dbsvr.hpp"

#include "handler.hpp"

int handle_db_request(const ConnID & connid, void * data)
{
	DBRequest request(*(DBReq*)data);

	DBSvr::instance().db_thread_pool()->put_request(request);

#if 0
	{
		// @TODO LOG ERROR
		LOG4CPLUS_ERROR(DBSvr::logger, "put request to request queue failed. queue.size: " << DBSvr::instance().db_thread_pool()->request_size());
	}
#endif

	return 0;
}

